package com.taotao.manage.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.taotao.manage.mapper.ItemCatMapper;
import com.taotao.manage.pojo.Item;
import com.taotao.manage.pojo.ItemCat;
import com.taotao.manage.service.ItemCatService;


@Service("itemService")
public class ItemCatServiceImpl implements ItemCatService {

	
	@Autowired
	private ItemCatMapper itemCatMapper;

	@Override
	public List<ItemCat> findAll(Long pid) {
		
		ItemCat cat = new ItemCat();
		cat.setParentId(pid);
		return itemCatMapper.select(cat);
		
	}
	
	
	
}
